USB_LIBS="-framework IOKit -framework CoreFoundation"
$as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
- CFLAGS="$CFLAGS -Imac/libusb/"
- # On mac use frameworks for includes and library files.
+ # On Mac, use frameworks for includes and library files.
# Macports uses a non-standard build of Qt with an added
# QT_INSTALL_FRAMEWORKS flag, so look for thier custom
# version first. That will fail on 'normal' Qt so fall
mac/libusb/usb.o "
USB_LIBS="-framework IOKit -framework CoreFoundation"
AC_DEFINE(HAVE_LIBUSB, 1)
- CFLAGS="$CFLAGS -Imac/libusb/"
- # On mac use frameworks for includes and library files.
+ # On Mac, use frameworks for includes and library files.
# Macports uses a non-standard build of Qt with an added
# QT_INSTALL_FRAMEWORKS flag, so look for thier custom
# version first. That will fail on 'normal' Qt so fall
#include "config.h"
#endif
#if HAVE_LIBUSB
-#include "usb.h"
+# if __APPLE__
+ // We use our own (slightly modified) libusb.
+# include "mac/libusb/usb.h"
+# else
+# include "usb.h"
+# endif
#include "gps.h"
#include "garminusb.h"
#include "gpsusbcommon.h"